package com.openbravo.ws.externalsales;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class Product
  implements Serializable
{
  private static final long serialVersionUID = 9239663177762L;
  private Category category;
  private String description;
  private String ean;
  private String id;
  private String imageUrl;
  private double listPrice;
  private String name;
  private String number;
  private double purchasePrice;
  private Tax tax;
  private Object __equalsCalc = null;
  private boolean __hashCodeCalc = false;
  private static TypeDesc typeDesc = new TypeDesc(Product.class, true);

  public Product()
  {
  }

  public Product(Category paramCategory, String paramString1, String paramString2, String paramString3, String paramString4, double paramDouble1, String paramString5, String paramString6, double paramDouble2, Tax paramTax)
  {
    this.category = paramCategory;
    this.description = paramString1;
    this.ean = paramString2;
    this.id = paramString3;
    this.imageUrl = paramString4;
    this.listPrice = paramDouble1;
    this.name = paramString5;
    this.number = paramString6;
    this.purchasePrice = paramDouble2;
    this.tax = paramTax;
  }

  public Category getCategory()
  {
    return this.category;
  }

  public void setCategory(Category paramCategory)
  {
    this.category = paramCategory;
  }

  public String getDescription()
  {
    return this.description;
  }

  public void setDescription(String paramString)
  {
    this.description = paramString;
  }

  public String getEan()
  {
    return this.ean;
  }

  public void setEan(String paramString)
  {
    this.ean = paramString;
  }

  public String getId()
  {
    return this.id;
  }

  public void setId(String paramString)
  {
    this.id = paramString;
  }

  public String getImageUrl()
  {
    return this.imageUrl;
  }

  public void setImageUrl(String paramString)
  {
    this.imageUrl = paramString;
  }

  public double getListPrice()
  {
    return this.listPrice;
  }

  public void setListPrice(double paramDouble)
  {
    this.listPrice = paramDouble;
  }

  public String getName()
  {
    return this.name;
  }

  public void setName(String paramString)
  {
    this.name = paramString;
  }

  public String getNumber()
  {
    return this.number;
  }

  public void setNumber(String paramString)
  {
    this.number = paramString;
  }

  public double getPurchasePrice()
  {
    return this.purchasePrice;
  }

  public void setPurchasePrice(double paramDouble)
  {
    this.purchasePrice = paramDouble;
  }

  public Tax getTax()
  {
    return this.tax;
  }

  public void setTax(Tax paramTax)
  {
    this.tax = paramTax;
  }

  public synchronized boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof Product))
      return false;
    Product localProduct = (Product)paramObject;
    if (paramObject == null)
      return false;
    if (this == paramObject)
      return true;
    if (this.__equalsCalc != null)
      return this.__equalsCalc == paramObject;
    this.__equalsCalc = paramObject;
    int i = ((this.category == null) && (localProduct.getCategory() == null)) || ((this.category != null) && (this.category.equals(localProduct.getCategory())) && (((this.description == null) && (localProduct.getDescription() == null)) || ((this.description != null) && (this.description.equals(localProduct.getDescription())) && (((this.ean == null) && (localProduct.getEan() == null)) || ((this.ean != null) && (this.ean.equals(localProduct.getEan())) && (((this.id == null) && (localProduct.getId() == null)) || ((this.id != null) && (this.id.equals(localProduct.getId())) && (((this.imageUrl == null) && (localProduct.getImageUrl() == null)) || ((this.imageUrl != null) && (this.imageUrl.equals(localProduct.getImageUrl())) && (this.listPrice == localProduct.getListPrice()) && (((this.name == null) && (localProduct.getName() == null)) || ((this.name != null) && (this.name.equals(localProduct.getName())) && (((this.number == null) && (localProduct.getNumber() == null)) || ((this.number != null) && (this.number.equals(localProduct.getNumber())) && (this.purchasePrice == localProduct.getPurchasePrice()) && (((this.tax == null) && (localProduct.getTax() == null)) || ((this.tax != null) && (this.tax.equals(localProduct.getTax()))))))))))))))))) ? 1 : 0;
    this.__equalsCalc = null;
    return i==1;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc)
      return 0;
    this.__hashCodeCalc = true;
    int i = 1;
    if (getCategory() != null)
      i += getCategory().hashCode();
    if (getDescription() != null)
      i += getDescription().hashCode();
    if (getEan() != null)
      i += getEan().hashCode();
    if (getId() != null)
      i += getId().hashCode();
    if (getImageUrl() != null)
      i += getImageUrl().hashCode();
    i += new Double(getListPrice()).hashCode();
    if (getName() != null)
      i += getName().hashCode();
    if (getNumber() != null)
      i += getNumber().hashCode();
    i += new Double(getPurchasePrice()).hashCode();
    if (getTax() != null)
      i += getTax().hashCode();
    this.__hashCodeCalc = false;
    return i;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanSerializer(paramClass, paramQName, typeDesc);
  }

  public static Deserializer getDeserializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanDeserializer(paramClass, paramQName, typeDesc);
  }

  static
  {
    typeDesc.setXmlType(new QName("/services/ExternalSales", "Product"));
    ElementDesc localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("category");
    localElementDesc.setXmlName(new QName("", "category"));
    localElementDesc.setXmlType(new QName("/services/ExternalSales", "Category"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("description");
    localElementDesc.setXmlName(new QName("", "description"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("ean");
    localElementDesc.setXmlName(new QName("", "ean"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("id");
    localElementDesc.setXmlName(new QName("", "id"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("imageUrl");
    localElementDesc.setXmlName(new QName("", "imageUrl"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("listPrice");
    localElementDesc.setXmlName(new QName("", "listPrice"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "double"));
    localElementDesc.setNillable(false);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("name");
    localElementDesc.setXmlName(new QName("", "name"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("number");
    localElementDesc.setXmlName(new QName("", "number"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("purchasePrice");
    localElementDesc.setXmlName(new QName("", "purchasePrice"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "double"));
    localElementDesc.setNillable(false);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("tax");
    localElementDesc.setXmlName(new QName("", "tax"));
    localElementDesc.setXmlType(new QName("/services/ExternalSales", "Tax"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.externalsales.Product
 * JD-Core Version:    0.6.0
 */